#ifndef __PARAM_H
#define __PARAM_H

#include "monitor.h"
#include "control.h"
#include "STC8G_H_EEPROM.h"
#include "pid.h"

//temp = (k*Res)>>8 + b
typedef struct{
    uint16_t k;
    int16_t b;
}Calib;

typedef struct{
    PID_Param pid_t;
    Calib calib;
    int16_t curr_bias;
}__code EEPROM_Param;

#define param ((EEPROM_Param*)(MOVC_ShiftAddress))
#define calib (param->calib)
#define pid_t (param->pid_t)
#define curr_bias (param->curr_bias)


#endif